package cn.edu.zjgsu.ito.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PurchaseOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PurchaseOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPurchaseIdIsNull() {
            addCriterion("purchase_id is null");
            return (Criteria) this;
        }

        public Criteria andPurchaseIdIsNotNull() {
            addCriterion("purchase_id is not null");
            return (Criteria) this;
        }

        public Criteria andPurchaseIdEqualTo(Integer value) {
            addCriterion("purchase_id =", value, "purchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseIdNotEqualTo(Integer value) {
            addCriterion("purchase_id <>", value, "purchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseIdGreaterThan(Integer value) {
            addCriterion("purchase_id >", value, "purchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("purchase_id >=", value, "purchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseIdLessThan(Integer value) {
            addCriterion("purchase_id <", value, "purchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseIdLessThanOrEqualTo(Integer value) {
            addCriterion("purchase_id <=", value, "purchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseIdIn(List<Integer> values) {
            addCriterion("purchase_id in", values, "purchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseIdNotIn(List<Integer> values) {
            addCriterion("purchase_id not in", values, "purchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseIdBetween(Integer value1, Integer value2) {
            addCriterion("purchase_id between", value1, value2, "purchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("purchase_id not between", value1, value2, "purchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUserIdIsNull() {
            addCriterion("purchase_user_id is null");
            return (Criteria) this;
        }

        public Criteria andPurchaseUserIdIsNotNull() {
            addCriterion("purchase_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andPurchaseUserIdEqualTo(Integer value) {
            addCriterion("purchase_user_id =", value, "purchaseUserId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUserIdNotEqualTo(Integer value) {
            addCriterion("purchase_user_id <>", value, "purchaseUserId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUserIdGreaterThan(Integer value) {
            addCriterion("purchase_user_id >", value, "purchaseUserId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("purchase_user_id >=", value, "purchaseUserId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUserIdLessThan(Integer value) {
            addCriterion("purchase_user_id <", value, "purchaseUserId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("purchase_user_id <=", value, "purchaseUserId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUserIdIn(List<Integer> values) {
            addCriterion("purchase_user_id in", values, "purchaseUserId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUserIdNotIn(List<Integer> values) {
            addCriterion("purchase_user_id not in", values, "purchaseUserId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUserIdBetween(Integer value1, Integer value2) {
            addCriterion("purchase_user_id between", value1, value2, "purchaseUserId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("purchase_user_id not between", value1, value2, "purchaseUserId");
            return (Criteria) this;
        }

        public Criteria andAcceptTimeIsNull() {
            addCriterion("accept_time is null");
            return (Criteria) this;
        }

        public Criteria andAcceptTimeIsNotNull() {
            addCriterion("accept_time is not null");
            return (Criteria) this;
        }

        public Criteria andAcceptTimeEqualTo(Date value) {
            addCriterion("accept_time =", value, "acceptTime");
            return (Criteria) this;
        }

        public Criteria andAcceptTimeNotEqualTo(Date value) {
            addCriterion("accept_time <>", value, "acceptTime");
            return (Criteria) this;
        }

        public Criteria andAcceptTimeGreaterThan(Date value) {
            addCriterion("accept_time >", value, "acceptTime");
            return (Criteria) this;
        }

        public Criteria andAcceptTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("accept_time >=", value, "acceptTime");
            return (Criteria) this;
        }

        public Criteria andAcceptTimeLessThan(Date value) {
            addCriterion("accept_time <", value, "acceptTime");
            return (Criteria) this;
        }

        public Criteria andAcceptTimeLessThanOrEqualTo(Date value) {
            addCriterion("accept_time <=", value, "acceptTime");
            return (Criteria) this;
        }

        public Criteria andAcceptTimeIn(List<Date> values) {
            addCriterion("accept_time in", values, "acceptTime");
            return (Criteria) this;
        }

        public Criteria andAcceptTimeNotIn(List<Date> values) {
            addCriterion("accept_time not in", values, "acceptTime");
            return (Criteria) this;
        }

        public Criteria andAcceptTimeBetween(Date value1, Date value2) {
            addCriterion("accept_time between", value1, value2, "acceptTime");
            return (Criteria) this;
        }

        public Criteria andAcceptTimeNotBetween(Date value1, Date value2) {
            addCriterion("accept_time not between", value1, value2, "acceptTime");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyIsNull() {
            addCriterion("true_money is null");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyIsNotNull() {
            addCriterion("true_money is not null");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyEqualTo(String value) {
            addCriterion("true_money =", value, "trueMoney");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyNotEqualTo(String value) {
            addCriterion("true_money <>", value, "trueMoney");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyGreaterThan(String value) {
            addCriterion("true_money >", value, "trueMoney");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyGreaterThanOrEqualTo(String value) {
            addCriterion("true_money >=", value, "trueMoney");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyLessThan(String value) {
            addCriterion("true_money <", value, "trueMoney");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyLessThanOrEqualTo(String value) {
            addCriterion("true_money <=", value, "trueMoney");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyLike(String value) {
            addCriterion("true_money like", value, "trueMoney");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyNotLike(String value) {
            addCriterion("true_money not like", value, "trueMoney");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyIn(List<String> values) {
            addCriterion("true_money in", values, "trueMoney");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyNotIn(List<String> values) {
            addCriterion("true_money not in", values, "trueMoney");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyBetween(String value1, String value2) {
            addCriterion("true_money between", value1, value2, "trueMoney");
            return (Criteria) this;
        }

        public Criteria andTrueMoneyNotBetween(String value1, String value2) {
            addCriterion("true_money not between", value1, value2, "trueMoney");
            return (Criteria) this;
        }

        public Criteria andPurchaseStateIsNull() {
            addCriterion("purchase_state is null");
            return (Criteria) this;
        }

        public Criteria andPurchaseStateIsNotNull() {
            addCriterion("purchase_state is not null");
            return (Criteria) this;
        }

        public Criteria andPurchaseStateEqualTo(Integer value) {
            addCriterion("purchase_state =", value, "purchaseState");
            return (Criteria) this;
        }

        public Criteria andPurchaseStateNotEqualTo(Integer value) {
            addCriterion("purchase_state <>", value, "purchaseState");
            return (Criteria) this;
        }

        public Criteria andPurchaseStateGreaterThan(Integer value) {
            addCriterion("purchase_state >", value, "purchaseState");
            return (Criteria) this;
        }

        public Criteria andPurchaseStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("purchase_state >=", value, "purchaseState");
            return (Criteria) this;
        }

        public Criteria andPurchaseStateLessThan(Integer value) {
            addCriterion("purchase_state <", value, "purchaseState");
            return (Criteria) this;
        }

        public Criteria andPurchaseStateLessThanOrEqualTo(Integer value) {
            addCriterion("purchase_state <=", value, "purchaseState");
            return (Criteria) this;
        }

        public Criteria andPurchaseStateIn(List<Integer> values) {
            addCriterion("purchase_state in", values, "purchaseState");
            return (Criteria) this;
        }

        public Criteria andPurchaseStateNotIn(List<Integer> values) {
            addCriterion("purchase_state not in", values, "purchaseState");
            return (Criteria) this;
        }

        public Criteria andPurchaseStateBetween(Integer value1, Integer value2) {
            addCriterion("purchase_state between", value1, value2, "purchaseState");
            return (Criteria) this;
        }

        public Criteria andPurchaseStateNotBetween(Integer value1, Integer value2) {
            addCriterion("purchase_state not between", value1, value2, "purchaseState");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(Date value) {
            addCriterion("end_time =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(Date value) {
            addCriterion("end_time <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(Date value) {
            addCriterion("end_time >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("end_time >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(Date value) {
            addCriterion("end_time <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("end_time <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<Date> values) {
            addCriterion("end_time in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<Date> values) {
            addCriterion("end_time not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(Date value1, Date value2) {
            addCriterion("end_time between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("end_time not between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressIsNull() {
            addCriterion("purchase_address is null");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressIsNotNull() {
            addCriterion("purchase_address is not null");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressEqualTo(String value) {
            addCriterion("purchase_address =", value, "purchaseAddress");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressNotEqualTo(String value) {
            addCriterion("purchase_address <>", value, "purchaseAddress");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressGreaterThan(String value) {
            addCriterion("purchase_address >", value, "purchaseAddress");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressGreaterThanOrEqualTo(String value) {
            addCriterion("purchase_address >=", value, "purchaseAddress");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressLessThan(String value) {
            addCriterion("purchase_address <", value, "purchaseAddress");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressLessThanOrEqualTo(String value) {
            addCriterion("purchase_address <=", value, "purchaseAddress");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressLike(String value) {
            addCriterion("purchase_address like", value, "purchaseAddress");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressNotLike(String value) {
            addCriterion("purchase_address not like", value, "purchaseAddress");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressIn(List<String> values) {
            addCriterion("purchase_address in", values, "purchaseAddress");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressNotIn(List<String> values) {
            addCriterion("purchase_address not in", values, "purchaseAddress");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressBetween(String value1, String value2) {
            addCriterion("purchase_address between", value1, value2, "purchaseAddress");
            return (Criteria) this;
        }

        public Criteria andPurchaseAddressNotBetween(String value1, String value2) {
            addCriterion("purchase_address not between", value1, value2, "purchaseAddress");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteIsNull() {
            addCriterion("purchase_note is null");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteIsNotNull() {
            addCriterion("purchase_note is not null");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteEqualTo(String value) {
            addCriterion("purchase_note =", value, "purchaseNote");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteNotEqualTo(String value) {
            addCriterion("purchase_note <>", value, "purchaseNote");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteGreaterThan(String value) {
            addCriterion("purchase_note >", value, "purchaseNote");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteGreaterThanOrEqualTo(String value) {
            addCriterion("purchase_note >=", value, "purchaseNote");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteLessThan(String value) {
            addCriterion("purchase_note <", value, "purchaseNote");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteLessThanOrEqualTo(String value) {
            addCriterion("purchase_note <=", value, "purchaseNote");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteLike(String value) {
            addCriterion("purchase_note like", value, "purchaseNote");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteNotLike(String value) {
            addCriterion("purchase_note not like", value, "purchaseNote");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteIn(List<String> values) {
            addCriterion("purchase_note in", values, "purchaseNote");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteNotIn(List<String> values) {
            addCriterion("purchase_note not in", values, "purchaseNote");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteBetween(String value1, String value2) {
            addCriterion("purchase_note between", value1, value2, "purchaseNote");
            return (Criteria) this;
        }

        public Criteria andPurchaseNoteNotBetween(String value1, String value2) {
            addCriterion("purchase_note not between", value1, value2, "purchaseNote");
            return (Criteria) this;
        }

        public Criteria andPurchaseUseVouchaseIdIsNull() {
            addCriterion("purchase_use_vouchase_id is null");
            return (Criteria) this;
        }

        public Criteria andPurchaseUseVouchaseIdIsNotNull() {
            addCriterion("purchase_use_vouchase_id is not null");
            return (Criteria) this;
        }

        public Criteria andPurchaseUseVouchaseIdEqualTo(Integer value) {
            addCriterion("purchase_use_vouchase_id =", value, "purchaseUseVouchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUseVouchaseIdNotEqualTo(Integer value) {
            addCriterion("purchase_use_vouchase_id <>", value, "purchaseUseVouchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUseVouchaseIdGreaterThan(Integer value) {
            addCriterion("purchase_use_vouchase_id >", value, "purchaseUseVouchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUseVouchaseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("purchase_use_vouchase_id >=", value, "purchaseUseVouchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUseVouchaseIdLessThan(Integer value) {
            addCriterion("purchase_use_vouchase_id <", value, "purchaseUseVouchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUseVouchaseIdLessThanOrEqualTo(Integer value) {
            addCriterion("purchase_use_vouchase_id <=", value, "purchaseUseVouchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUseVouchaseIdIn(List<Integer> values) {
            addCriterion("purchase_use_vouchase_id in", values, "purchaseUseVouchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUseVouchaseIdNotIn(List<Integer> values) {
            addCriterion("purchase_use_vouchase_id not in", values, "purchaseUseVouchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUseVouchaseIdBetween(Integer value1, Integer value2) {
            addCriterion("purchase_use_vouchase_id between", value1, value2, "purchaseUseVouchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchaseUseVouchaseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("purchase_use_vouchase_id not between", value1, value2, "purchaseUseVouchaseId");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceIsNull() {
            addCriterion("purchase_pay_courier_price is null");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceIsNotNull() {
            addCriterion("purchase_pay_courier_price is not null");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceEqualTo(String value) {
            addCriterion("purchase_pay_courier_price =", value, "purchasePayCourierPrice");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceNotEqualTo(String value) {
            addCriterion("purchase_pay_courier_price <>", value, "purchasePayCourierPrice");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceGreaterThan(String value) {
            addCriterion("purchase_pay_courier_price >", value, "purchasePayCourierPrice");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceGreaterThanOrEqualTo(String value) {
            addCriterion("purchase_pay_courier_price >=", value, "purchasePayCourierPrice");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceLessThan(String value) {
            addCriterion("purchase_pay_courier_price <", value, "purchasePayCourierPrice");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceLessThanOrEqualTo(String value) {
            addCriterion("purchase_pay_courier_price <=", value, "purchasePayCourierPrice");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceLike(String value) {
            addCriterion("purchase_pay_courier_price like", value, "purchasePayCourierPrice");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceNotLike(String value) {
            addCriterion("purchase_pay_courier_price not like", value, "purchasePayCourierPrice");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceIn(List<String> values) {
            addCriterion("purchase_pay_courier_price in", values, "purchasePayCourierPrice");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceNotIn(List<String> values) {
            addCriterion("purchase_pay_courier_price not in", values, "purchasePayCourierPrice");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceBetween(String value1, String value2) {
            addCriterion("purchase_pay_courier_price between", value1, value2, "purchasePayCourierPrice");
            return (Criteria) this;
        }

        public Criteria andPurchasePayCourierPriceNotBetween(String value1, String value2) {
            addCriterion("purchase_pay_courier_price not between", value1, value2, "purchasePayCourierPrice");
            return (Criteria) this;
        }

        public Criteria andPurchaseFindCourierTimeIsNull() {
            addCriterion("purchase_find_courier_time is null");
            return (Criteria) this;
        }

        public Criteria andPurchaseFindCourierTimeIsNotNull() {
            addCriterion("purchase_find_courier_time is not null");
            return (Criteria) this;
        }

        public Criteria andPurchaseFindCourierTimeEqualTo(Date value) {
            addCriterion("purchase_find_courier_time =", value, "purchaseFindCourierTime");
            return (Criteria) this;
        }

        public Criteria andPurchaseFindCourierTimeNotEqualTo(Date value) {
            addCriterion("purchase_find_courier_time <>", value, "purchaseFindCourierTime");
            return (Criteria) this;
        }

        public Criteria andPurchaseFindCourierTimeGreaterThan(Date value) {
            addCriterion("purchase_find_courier_time >", value, "purchaseFindCourierTime");
            return (Criteria) this;
        }

        public Criteria andPurchaseFindCourierTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("purchase_find_courier_time >=", value, "purchaseFindCourierTime");
            return (Criteria) this;
        }

        public Criteria andPurchaseFindCourierTimeLessThan(Date value) {
            addCriterion("purchase_find_courier_time <", value, "purchaseFindCourierTime");
            return (Criteria) this;
        }

        public Criteria andPurchaseFindCourierTimeLessThanOrEqualTo(Date value) {
            addCriterion("purchase_find_courier_time <=", value, "purchaseFindCourierTime");
            return (Criteria) this;
        }

        public Criteria andPurchaseFindCourierTimeIn(List<Date> values) {
            addCriterion("purchase_find_courier_time in", values, "purchaseFindCourierTime");
            return (Criteria) this;
        }

        public Criteria andPurchaseFindCourierTimeNotIn(List<Date> values) {
            addCriterion("purchase_find_courier_time not in", values, "purchaseFindCourierTime");
            return (Criteria) this;
        }

        public Criteria andPurchaseFindCourierTimeBetween(Date value1, Date value2) {
            addCriterion("purchase_find_courier_time between", value1, value2, "purchaseFindCourierTime");
            return (Criteria) this;
        }

        public Criteria andPurchaseFindCourierTimeNotBetween(Date value1, Date value2) {
            addCriterion("purchase_find_courier_time not between", value1, value2, "purchaseFindCourierTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}